<template>
  <el-container>
    <el-header style="background-color:#eff2f7" class="top">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/index' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>说明</el-breadcrumb-item>
        <el-breadcrumb-item>文本说明</el-breadcrumb-item>
      </el-breadcrumb>
      <!-- header右侧头像开始 -->
      <div class="block">
        <el-avatar :size="50" :src="circleUrl"></el-avatar>
        <div class="poputs">
          <div @click="tzHome">首页</div>
          <div @click="tzLogin">退出</div>
        </div>
      </div>
      <!-- header右侧头像结束 -->
    </el-header>
    <el-main style="background-color:#ffffff" class="main">
      <div class="text">
        <p>node-elm后台管理系统</p>
        <p>第一次登录的用户自动注册成为普通管理员</p>
        <p>普通管理员可以添加，修改信息</p>
        <p>超级管理员可以删除信息</p>
      </div>
    </el-main>
  </el-container>
</template>
<script>
export default {
  data() {
    return {
      circleUrl:
        "https://img01.sogoucdn.com/app/a/100520093/fb41c7c77a2454f7-01eba5833e7e38bc-11cc0200d4b834a0dddb28091fd46806.jpg",
    };
  },
  methods: {
    tzHome() {
      this.$router.push({ path: "/home" });
    },
    tzLogin() {
      this.$router.push({ path: "/login" });
    },
  },
};
</script>
 <style  scoped>
.block {
  position: relative;
}
.poputs {
  position: absolute;
  top: 55px;
  left: -20px;
  width: 80px;
  height: 60px;
  background-color: #fff;
  box-sizing: border-box;
  box-shadow: 2px 3px 10px -1px #333;
  display: none;
  z-index: 999;
}
.block:hover .poputs {
  display: block;
}
.poputs > div {
  width: 80px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: #000;
  cursor: pointer;
}
.poputs > div:hover {
  background-color: #e4e8f1;
  color: #333;
}
.text{
  width: 100%;
}
.text>p{
  font-size: 16px;
  line-height: 30px;
  text-align: center;
}
</style>
